Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added aline hooks #85

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

cnvogelg
Copy link

@cnvogelg cnvogelg commented Jan 3, 2022

This PR adds aline hooks to Musashi. This feature allows to receive callbacks whenever an 0xaxxx opcode is encountered.
You can then decide for each opcode in the callback if you want to process it normally, i.e. trigger an CPU exception or do an RTS or do nothing. The latter operations are very useful if you use the 0xaxxx opcodes for fast "emulator traps", i.e. you can quickly trigger native operations from m68k code without performing the whole exception handling on m68k CPU side.

I use this feature for my amitools vamos emulator to provide native OS calls.
It would be great if you accept this PR and bring it to upstream.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant